package com.aigou.admin.dao;

import com.aigou.admin.entity.Product;
import com.aigou.admin.entity.User;

import java.util.List;

/**
 * @Author: Hor
 * @Date: 2024/11/29 09:17
 * @Version: 1.0
 */
public interface UserDao {

    /**
     * 查询所有的用户
     * @return 用户列表
     */
    List<User> selectAll();

    /**
     * 查询单个用户信息
     * @param id id
     * @return user
     */
    User selectById(String id);

    Boolean insert(User user);

    Boolean update(User user);

    Boolean delete(String id);

    User selectByUsername(String username);

    Integer selectCount(String username);


    List<User> selectUserByLimit(Integer start, Integer limit,String username);


}
